package com.fancy.controller;

import com.fancy.pojo.category.Music;
import com.fancy.pojo.category.MusicType;
import com.fancy.service.MusicTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/musicType")
public class MusicTypeController {
    @Autowired
    MusicTypeService musicTypeService;

    @RequestMapping("/selectAllMusicType")
    public List<MusicType> selectMusicByTypeId(){
        return musicTypeService.selectMusicByTypeId();
    }


}
